package net.xinshi.boot;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/29.
 */
@Component
@ConfigurationProperties(prefix = "app")
public class AppConfig {
    private String sign;//用于验证加密的密钥
    private String logToken;//日志查看token
    private String urlDomain;//接口地址的域名
    private String validateSign;//是否验证签名,Y：验证，N：不验证
    private Integer refreshInterval;//API刷新间隔
    private List<String> appTokens = new ArrayList<String>();//appTokens

    public Integer getRefreshInterval() {
        return refreshInterval;
    }

    public void setRefreshInterval(Integer refreshInterval) {
        this.refreshInterval = refreshInterval;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getLogToken() {
        return logToken;
    }

    public void setLogToken(String logToken) {
        this.logToken = logToken;
    }

    public String getUrlDomain() {
        return urlDomain;
    }

    public void setUrlDomain(String urlDomain) {
        this.urlDomain = urlDomain;
    }

    public List<String> getAppTokens() {
        return appTokens;
    }

    public void setAppTokens(List<String> appTokens) {
        this.appTokens = appTokens;
    }

    public String getValidateSign() {
        return validateSign;
    }

    public void setValidateSign(String validateSign) {
        this.validateSign = validateSign;
    }
}
